package com.cf.dao;
import com.cf.dao.entity.User;
import java.sql.SQLException;
public interface UserDao {
    // 根据账号和密码查询用户信息
    User selectUserByAccountAndPwd(String account, String password) throws SQLException;
    // 注册用户
    void insertUser(User user) throws SQLException;
    // 根据账号查询用户信息(查重)
    User selectUserByAccount(String trim) throws SQLException;
    //更新账户信息
    boolean updateUserProfile(int userId, String name,int age,String sexy,String password) throws SQLException;
    boolean updateUserProfile(int userId, String name,int age,String sexy) throws SQLException;
    //根据id查询用户信息
    User selectUserById(int userId) throws SQLException;
    //查询注册邮箱（查重）
    boolean selectUserByEmail(String email) throws SQLException;

    boolean saveImageUrlToDatabase(String imageUrl, int userId);
}